<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Ocr\V20181119\Models;
use TencentCloud\Common\AbstractModel;

/**
 * RecognizeBrazilRNMOCR response structure.
 *
 * @method string getSOBRENOME() Obtain Last name
 * @method void setSOBRENOME(string $SOBRENOME) Set Last name
 * @method string getNOME() Obtain First name
 * @method void setNOME(string $NOME) Set First name
 * @method string getDATADENASCIMENTO() Obtain Date of Birth
 * @method void setDATADENASCIMENTO(string $DATADENASCIMENTO) Set Date of Birth
 * @method string getSEXO() Obtain Gender
 * @method void setSEXO(string $SEXO) Set Gender
 * @method string getMEMBERSHIP() Obtain Parents name
 * @method void setMEMBERSHIP(string $MEMBERSHIP) Set Parents name
 * @method string getNACIONALIDADE() Obtain Nationality
 * @method void setNACIONALIDADE(string $NACIONALIDADE) Set Nationality
 * @method string getVALIDADE() Obtain Expiry Date
 * @method void setVALIDADE(string $VALIDADE) Set Expiry Date
 * @method string getRNM() Obtain RNM
 * @method void setRNM(string $RNM) Set RNM
 * @method string getCPF() Obtain CPF
 * @method void setCPF(string $CPF) Set CPF
 * @method string getCLASSIFICATION() Obtain 
 * @method void setCLASSIFICATION(string $CLASSIFICATION) Set 
 * @method string getPRAZODERESIDENCIA() Obtain 
 * @method void setPRAZODERESIDENCIA(string $PRAZODERESIDENCIA) Set 
 * @method string getISSUANCE() Obtain Issue Date
 * @method void setISSUANCE(string $ISSUANCE) Set Issue Date
 * @method string getAMPAROLEGAL() Obtain Legal basis
 * @method void setAMPAROLEGAL(string $AMPAROLEGAL) Set Legal basis
 * @method string getMRZ() Obtain Machine readable zone code
 * @method void setMRZ(string $MRZ) Set Machine readable zone code
 * @method string getPortraitImage() Obtain PortraitImage
 * @method void setPortraitImage(string $PortraitImage) Set PortraitImage
 * @method string getPortraitImageBack() Obtain PortraitImage(Back)
 * @method void setPortraitImageBack(string $PortraitImageBack) Set PortraitImage(Back)
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class RecognizeBrazilRNMOCRResponse extends AbstractModel
{
    /**
     * @var string Last name
     */
    public $SOBRENOME;

    /**
     * @var string First name
     */
    public $NOME;

    /**
     * @var string Date of Birth
     */
    public $DATADENASCIMENTO;

    /**
     * @var string Gender
     */
    public $SEXO;

    /**
     * @var string Parents name
     */
    public $MEMBERSHIP;

    /**
     * @var string Nationality
     */
    public $NACIONALIDADE;

    /**
     * @var string Expiry Date
     */
    public $VALIDADE;

    /**
     * @var string RNM
     */
    public $RNM;

    /**
     * @var string CPF
     */
    public $CPF;

    /**
     * @var string 
     */
    public $CLASSIFICATION;

    /**
     * @var string 
     */
    public $PRAZODERESIDENCIA;

    /**
     * @var string Issue Date
     */
    public $ISSUANCE;

    /**
     * @var string Legal basis
     */
    public $AMPAROLEGAL;

    /**
     * @var string Machine readable zone code
     */
    public $MRZ;

    /**
     * @var string PortraitImage
     */
    public $PortraitImage;

    /**
     * @var string PortraitImage(Back)
     */
    public $PortraitImageBack;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param string $SOBRENOME Last name
     * @param string $NOME First name
     * @param string $DATADENASCIMENTO Date of Birth
     * @param string $SEXO Gender
     * @param string $MEMBERSHIP Parents name
     * @param string $NACIONALIDADE Nationality
     * @param string $VALIDADE Expiry Date
     * @param string $RNM RNM
     * @param string $CPF CPF
     * @param string $CLASSIFICATION 
     * @param string $PRAZODERESIDENCIA 
     * @param string $ISSUANCE Issue Date
     * @param string $AMPAROLEGAL Legal basis
     * @param string $MRZ Machine readable zone code
     * @param string $PortraitImage PortraitImage
     * @param string $PortraitImageBack PortraitImage(Back)
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("SOBRENOME",$param) and $param["SOBRENOME"] !== null) {
            $this->SOBRENOME = $param["SOBRENOME"];
        }

        if (array_key_exists("NOME",$param) and $param["NOME"] !== null) {
            $this->NOME = $param["NOME"];
        }

        if (array_key_exists("DATADENASCIMENTO",$param) and $param["DATADENASCIMENTO"] !== null) {
            $this->DATADENASCIMENTO = $param["DATADENASCIMENTO"];
        }

        if (array_key_exists("SEXO",$param) and $param["SEXO"] !== null) {
            $this->SEXO = $param["SEXO"];
        }

        if (array_key_exists("MEMBERSHIP",$param) and $param["MEMBERSHIP"] !== null) {
            $this->MEMBERSHIP = $param["MEMBERSHIP"];
        }

        if (array_key_exists("NACIONALIDADE",$param) and $param["NACIONALIDADE"] !== null) {
            $this->NACIONALIDADE = $param["NACIONALIDADE"];
        }

        if (array_key_exists("VALIDADE",$param) and $param["VALIDADE"] !== null) {
            $this->VALIDADE = $param["VALIDADE"];
        }

        if (array_key_exists("RNM",$param) and $param["RNM"] !== null) {
            $this->RNM = $param["RNM"];
        }

        if (array_key_exists("CPF",$param) and $param["CPF"] !== null) {
            $this->CPF = $param["CPF"];
        }

        if (array_key_exists("CLASSIFICATION",$param) and $param["CLASSIFICATION"] !== null) {
            $this->CLASSIFICATION = $param["CLASSIFICATION"];
        }

        if (array_key_exists("PRAZODERESIDENCIA",$param) and $param["PRAZODERESIDENCIA"] !== null) {
            $this->PRAZODERESIDENCIA = $param["PRAZODERESIDENCIA"];
        }

        if (array_key_exists("ISSUANCE",$param) and $param["ISSUANCE"] !== null) {
            $this->ISSUANCE = $param["ISSUANCE"];
        }

        if (array_key_exists("AMPAROLEGAL",$param) and $param["AMPAROLEGAL"] !== null) {
            $this->AMPAROLEGAL = $param["AMPAROLEGAL"];
        }

        if (array_key_exists("MRZ",$param) and $param["MRZ"] !== null) {
            $this->MRZ = $param["MRZ"];
        }

        if (array_key_exists("PortraitImage",$param) and $param["PortraitImage"] !== null) {
            $this->PortraitImage = $param["PortraitImage"];
        }

        if (array_key_exists("PortraitImageBack",$param) and $param["PortraitImageBack"] !== null) {
            $this->PortraitImageBack = $param["PortraitImageBack"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
